package com.cg.service;

import com.cg.Dto.*;
import com.cg.entity.Farm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cg.result.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
public interface FarmService extends IService<Farm> {

    R<Farm> searchs(SearchFarmDto searchFarmDto);

    R<?> inserts(InsertFarmDto insertFarmDto);

    R<?> updateFarm(UpdateFarmDto updateFarmDto);

    R<?> updateStatus(UpdateFramStatusDto updateFramStatusDto);

    R<?> searchdetail(GetInsertFramDto getInsertFramDto);

    R<Farm> getFarnByStatus();
}
